<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,
    maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
    <title>云副业下载</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        body>img {
            width: 100%;
        }

        .box {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-family: PingFang SC;
            width: 100%;
        }

        .box>div {
            font-size: .46rem;
            width: 70%;
            height: .8rem;
            line-height: .8rem;
            text-align: center;
            border-radius: .4rem;
            margin: .3rem 0;
        }

        .box>div:first-of-type {
            border: 1px solid rgb(43, 184, 0);
            color: rgb(43, 184, 0);
        }

        .box>div:last-of-type {
            border: 1px solid rgb(0, 118, 228);
            color: rgb(0, 118, 228);
        }

        .box>p {
            font-size: .32rem;
            margin-top: .6rem;
        }

        html,
        body,
        .bg,
        .pop {
            width: 100%;
            height: 100%;
        }

        .pop {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.3);
        }

        .pop p {
            color: white;
            font-size: .32rem;
            position: fixed;
            top: 1rem;
            right: .5rem;

        }

        .pop img {
            width: 1rem;
            position: fixed;
            top: .3rem;
            right: .2rem;
        }
    </style>
</head>

<body>
<img src="__STATIC__/app/image/1.png" alt="">
<div class="box">
    <div class="a" onclick="az()">Android下载</div>
    <div class="i" onclick="io()">ios下载</div>
    <p>请在右上角点击在浏览器中打开下载</p>
</div>
<div class="pop">
    <img src="__STATIC__/app/image/2.png" alt="">
    <p>请点击右上角“...”，</br>
        选在在浏览器中打开下载安装
    </p>
</div>
</body>
<script>
    function is_weixn(){
        var ua = navigator.userAgent.toLowerCase();
        if(ua.match(/MicroMessenger/i)=="micromessenger") {
            return true;
        } else {
            return false;
        }
    }
    function io() {
        if(is_weixn()){
            var pop =document.getElementsByClassName("pop")[0]
            pop.style.display = "block"
        }else{
            window.location.href = "https://web.yunfuye.com/";
        }
    }
    function az() {
        if(is_weixn()){
            var pop =document.getElementsByClassName("pop")[0]
            pop.style.display = "block"
        }else{
            window.location.href = "{$android_url}";
        }

    }
    function setrem() {
        let Winw = document.documentElement.clientWidth || document.body.clientWidth;
        let Uiw = 750;
        let rem = (Winw / Uiw) * 100;
        if (rem >= 70) {
            rem = 70
        } else if (rem <= 42) {
            rem = 42
        }
        document.getElementsByTagName('html')[0].style.fontSize = rem + 'px'
    }
    setrem()
    // window.onresize = setrem();
</script>

</html>